//
//  NRDesignateGroupModel.h
//  NetrainFrame
//
//  Created by Gin on 2020/12/17.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NRDesignateGroupModel : NSObject

@property(nonatomic, copy) NSString *departmentId;

@property(nonatomic, copy) NSString *name;

@property(nonatomic, assign) BOOL checked;
///是否被其他选择修改自己的选择
@property(nonatomic, assign) BOOL codeChanged;

@property(nonatomic, strong) NRDesignateGroupModel *parentGroupModel;

@property(nonatomic, copy) NSArray<NRDesignateGroupModel *> *groups;

- (void)isAllChecked;
///手动修改选中状态
- (void)updateChecked:(BOOL)checked;
///子控件也遍历
- (void)setAllChildChecked:(BOOL)checked;

@end


NS_ASSUME_NONNULL_END
